#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>



int myRound(double x)
{
	return  (x+0.5);
}

void deleted(int a[], int n, int k);
int main()
{
	int a[9] = { 1,4,13,9,6,11,18,14,25 }, k;
	int i;
	scanf("%d",&k);
	deleted(a,9,k);
	for (i = 0; i < 8; i++)
		printf("%4d", a[i]);
	return 0;
}

void deleted(int a[], int n, int k)
{
	for (int i = k; i < n; i++)
	{
		a[i] = a[i + 1];
	}
}
